package com.woniuxy.charin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.woniuxy.charin.model.entity.EventDispose;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @author WH
 * @description 针对表【event_dispose】的数据库操作Mapper
 * @createDate 2024-12-25 10:30:21
 * @Entity com.woniuxy.charin.model.entity.EventDispose
 */
public interface EventDisposeMapper extends BaseMapper<EventDispose> {
    IPage<EventDispose> selectPageEventDisposes(IPage<EventDispose> page, @Param("eventType") Integer eventType, @Param("processorsId") Integer processorsId, @Param("status") Integer status, @Param("startDate") Date startDate, @Param("endDate") Date endDate);

    Integer statisticsEventByType(@Param("userId") Integer userId, @Param("typeId") Integer type);

    Integer statisticsOverdueEventByType(@Param("userId") Integer userId, @Param("typeId") Integer type, @Param("thresholdDate") Date thresholdDate);
}




